//
//  HOUserInfoEntity.h
//  WeiDu_1_0
//
//  Created by foguo-mac-1 on 01/07/16.
//  Copyright (c) 2016 WeiDu Energy Tech. All rights reserved.
//

#import "HOBaseEntity.h"
#import <UIKit/UIKit.h>
#import "HODefine.h"

@interface HOUserInfoEntity : HOBaseEntity

@property(nonatomic, assign)HO_USER_TYPE	userType;		//int型， 1:院领导,2:报修人员,3:维修人员；
@property(nonatomic, retain)NSString		*name;
@property(nonatomic, retain)NSString		*telPhone;
@property(nonatomic, retain)NSString		*city;			//位置信息
@property(nonatomic, assign)int				regionId;		//int 型，城市索引信息
@property(nonatomic, retain)NSString		*province;		//保留
@property(nonatomic, assign)float				appraise;		//int 型，综合评分值，取整；
@property(nonatomic, assign)int				gender;			//int 型，0：男； 1： 女；
@property(nonatomic, retain)NSString		*companyId;			//int 型，0：男； 1： 女；
@property(nonatomic, retain)NSString		*personalIntroduce;		//简介，限定字数300；
@property(nonatomic, retain)NSString		*companyIntroduce;		//简介，限定字数300；
@property(nonatomic, retain)NSString		*bank;		//开户行信息


@property(nonatomic, retain)NSString		*userIconUrl;	//头像的url
@property(nonatomic, assign)HO_TRANS_LEVEL	transLevel;			//0：未审核； 1：审核中 2: 审核通过；3：审核不通过   4：审核中, 5:审核不通过
@property(nonatomic, retain)NSString		*companyName;	//String, 企业名称; 翻译师专属信息； 如果角色为企业用户，则为””
@property(nonatomic, assign)float			balanceAvaiable;//浮点型，，美元为单位，可使用金额
@property(nonatomic, assign)float			balanceFrozen;	//浮点型，美元为单位，冻结金额
@property(nonatomic, assign)float			price;	//浮点型，美元为单位，冻结金额
@property(nonatomic, retain)NSString		*language;		//“1-2-3”,翻译语言;1:中文，2：日文；3英文
@property(nonatomic, retain)NSString		*birthday;		//字符串型，年龄信息
@property(nonatomic, assign)int		education;		//学历信息
@property(nonatomic, retain)NSString		*bankAccount;	//银行账户信息，纯数字的字符串
@property(nonatomic, assign)int			todoFillInfo;
@property(nonatomic, assign)BOOL			isGotInfo;
@property(nonatomic, assign)int				level;
@property(nonatomic, assign)int				rating;
@property(nonatomic, assign)int				userId;			//
@property(nonatomic, assign)int				listId;			//
@property(nonatomic, assign)int				orderId;			//
@property(nonatomic, assign)HO_PAY_STATUS				payStatus;////支付状态，0未支付 1 已支付

@property(nonatomic, retain)NSString		*mobile;
@property(nonatomic, retain)NSString		*workId;
@property(nonatomic, retain)NSString		*userName;
@property(nonatomic, retain)NSString		*email;
@property(nonatomic, retain)NSString		*headPic;
@property(nonatomic, retain)NSString		*realName;
@property(nonatomic, retain)NSString		*departmentName;
@property(nonatomic, assign)int				departmentId;
@property(nonatomic, retain)NSString		*speed;
@property(nonatomic, retain)NSString		*jobName;
@property(nonatomic, assign)int				workNums;
@property(nonatomic, retain)NSString		*praise;
@property(nonatomic, retain)NSString		*repair;
@property(nonatomic, assign)BOOL 			isGotData;
@property(nonatomic, assign)BOOL 			isWorking;
@property(nonatomic, assign)int			unhandleReportNumber;
@property(nonatomic, assign)int				acceptedTotalCount;
@property(nonatomic, assign)int				unacceptTotalCount;
@property(nonatomic, assign)int				acceptAssistantTotalCount;
@property(nonatomic, assign)int				unacceptedAssistantTotalCount;
@property(nonatomic, assign)BOOL			needShowAddExtraBtn;
@property(nonatomic, assign)BOOL			isDean;
@property(nonatomic, retain)NSString 		*virtualCellPhone;



/*
 "UserId": 3,//Int型 用户ID
 "WorkeId": 10001,//Int型 用户的工号
 "UserName": "wang1",//String型 用户名
 "Email": "",//String型 邮箱帐号
 "Mobile":"",//String型 手机号码
 "Headpic":"",//String型 用户头像
 "TrueName":"",//String型 真实姓名
 "DepName":"",//String型 部门名称
 "JobName": "",//String型 职位名称
 "WorkNums":0,//Int型本月工作量,
 "Speed":"10min",//String型 本月响应速度
 "Praise":"10%",//String型本月好评率
 "Repair":"10%",//String型本月返修率
 */

- (void)saveType:(HO_USER_TYPE)type;
- (BOOL)isLeaderUser;
- (BOOL)isReportUser;
- (BOOL)isRepairUser;
- (int)getUserId;
- (void)saveUserId:(int)Id;

- (void)cleanup;
@end
